package com.xmut.rc.service;

import com.xmut.rc.entity.SysUser;
import com.xmut.rc.entity.vo.LoginVo;
import com.xmut.rc.entity.vo.RegisterVo;
import com.xmut.rc.entity.vo.SysUserVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @description: 角色接口
 * @author: XS
 * @date: 2022/5/23
 */
public interface SysUserService extends IService<SysUser> {
    String login(LoginVo loginVo);

    boolean register(RegisterVo registerVo);

    SysUserVo getLoginUserInfo(String userId);

    SysUser selectByUsername(String username);

    String generateValidateCode(String validateCodeId);

    boolean generateEmailValidateCode(String validateCodeId, String targetEmail);

    boolean findPassword(String username, String email);

    boolean resetPassword(String password, String key);

    boolean modifyPassword(String id, String oldPassword, String newPassword);

}
